package day05;

public class MethodDemo1 {
    public static void main(String[] args) {
        say();
        say();
        say("Jack");
        say("Mike");
        say("Rose", 16);
        say("Lisa", 50);
        say("Sam", 20);

    }

    public static void say(String name, int age) {
        if (age >= 30) {
            return;
        }
        System.out.println("My name is " + name + "，今年" + age + "岁了！");
    }

    public static void say(String name) {
        System.out.println("My name is " + name + "，今年18岁了！");
    }

    public static void say() {
        System.out.println("My name is Kong，今年8岁了！");
    }

    public static void say(int age, String name) {
    }

    public static void say(int age) {
    }
//    public static void say(String address){}

//    public static int say(){return 0 ;}


}
